package com.zq.vaccinum.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zq.vaccinum.domain.entity.User;

import java.util.HashMap;

/**
 * <p>
 * 用户 服务类
 * </p>
 *
 * @author zq
 * @since 2023-05-27
 */
public interface IUserService extends IService<User> {
    /**
     * 用户登录
     * @param username
     * @param password
     * @param code
     * @param uuid
     * @return
     */
    String login(String username, String password, String code, String uuid);

    /**
     * 注册
     * @param user
     * @return
     */
    void register(User user);


    /**
     * 逻辑删除
     * @param user
     */
    void softDelete(User user);

    /**
     * 物理删除
     * @param user
     * @return
     */
    void delete(User user);

    User getUserInfo(String username);

    /**
     * 查询所有用户
     * @return
     */
    HashMap findAllUser(Integer pageNum, Integer pageSize, String keyword);

    void logout();


}
